# -*- coding: utf-8 -*-
import cgi
import datetime
import wsgiref.handlers

from google.appengine.ext import db
import enhancedModel as em

class ManifestModel( em.EnhancedModel ):
	startAddress = db.StringProperty()
	destAddress  = db.StringProperty()
	orders      = db.ListProperty(long)
	__prefix__  = 'Manifest'

	def showLink(self):
		return ("/manifest/show1/id/%d" % self.ident)

	def showAllLink(self):
		return ("/manifest/showAll/")

	def editLink(self):
		return ("/manifest/edit/id/%d" % self.ident)

	def newLink(self):
		return ("/manifest/new")

	def deleteLink(self):
		return ("/manifest/delete/id/%d" % self.ident)

